package com.dalongxin.work;

public class Constants {

    public static final String DATABASE_NAME = "dlx.db";
    public static final int DATABASE_VERSION = 1;
    public static final int pageSize = 10;
    public static final String SIGN_KEY = "7c0fc567e30431ebfa8bc3f35809438e";

    public static final String base_url_api = "http://47.102.214.47:8888/hft-client";
    //获取验证码
    public static final String url_getCode = base_url_api + "/oaapi/login/getCode";
    //手机验证码登录
    public static final String url_phoneLogin = base_url_api + "/oaapi/login/phoneLogin";
    //获取通讯录列表
    public static final String url_contactList = base_url_api + "/oaapi/addressbook/getList";
    //合同审批列表
    public static final String url_getContractList = base_url_api + "/oaapi/approve/getContractList";
    //合同审批提交
    public static final String url_saveContract = base_url_api + "/oaapi/approve/saveContract";
    //采购计划列表
    public static final String url_getBuyList = base_url_api + "/oaapi/approve/getBuyList";
    //采购计划提交
    public static final String url_saveBuy = base_url_api + "/oaapi/approve/saveBuy";
    //费用报销列表
    public static final String url_getFeeList = base_url_api + "/oaapi/approve/getFeeList";
    //费用报销提交
    public static final String url_saveFee = base_url_api + "/oaapi/approve/saveFee";
    //付款申请列表
    public static final String url_getPayList = base_url_api + "/oaapi/approve/getPayList";
    //付款申请提交
    public static final String url_savePay = base_url_api + "/oaapi/approve/savePay";
    //合同评审列表
    public static final String url_getReviewList = base_url_api + "/oaapi/approve/getReviewList";
    //合同评审提交
    public static final String url_saveReview = base_url_api + "/oaapi/approve/saveReview";
    //上传图片
    public static final String url_approve_uploadFile = base_url_api + "/oaapi/approve/uploadFile";
    //合同审批(审批)
    public static final String url_approveContract = base_url_api + "/oaapi/approve/approveContract";
    //采购计划(审批)
    public static final String url_approveBuy = base_url_api + "/oaapi/approve/approveBuy";
    //费用报销(审批)
    public static final String url_approveFee = base_url_api + "/oaapi/approve/approveFee";
    //付款申请(审批)
    public static final String url_approvePay = base_url_api + "/oaapi/approve/approvePay";
    //合同评审(审批)
    public static final String url_approveReview = base_url_api + "/oaapi/approve/approveReview";

    //公司列表
    public static final String url_getCompanyList = base_url_api + "/oaapi/approve/getCompanyList";
    //供应商列表
    public static final String url_getSupplierList = base_url_api + "/oaapi/approve/getSupplierList";
    //项目列表
    public static final String url_getProjectList = base_url_api + "/oaapi/approve/getProjectList";

    //手机验证码登录
    public static final String url_getMyFolderList = base_url_api + "/oaapi/netdisk/getMyFolderList";
    //创建文件夹
    public static final String url_addFolder = base_url_api + "/oaapi/netdisk/addFolder";
    //删除文件
    public static final String url_delFile = base_url_api + "/oaapi/netdisk/delFile";
    //删除空文件夹
    public static final String url_delFolder = base_url_api + "/oaapi/netdisk/delFolder";
    //重命名文件
    public static final String url_renameFile = base_url_api + "/oaapi/netdisk/renameFile";
    //重命名文件夹
    public static final String url_renameFolder = base_url_api + "/oaapi/netdisk/renameFolder";
    //上传文件
    public static final String url_uploadFile = base_url_api + "/oaapi/netdisk/uploadFile";

    public static final String FilePath = "/OfficeWork";
    public interface Key {
        String USER = "sp_user";
        String AutoLogin = "sp_auto_login";
        String SP_CLOUD_DISK_COUNT = "sp_unread_count";
        String SP_CLOUD_DISK_READ = "sp_read";
        String SP_CLOUD_DISK_UNREAD = "sp_unread";
        String SP_COMPANY = "sp_company";
        String SP_PROJECT = "sp_project";
        String SP_DEPARTMENT = "sp_department";
        String SP_CONTRACT = "sp_contract";
    }

    public static String WPS_DOWNLOAD_PATH = "/webshare/static/ucenter/client/android_wps.apk";

    public static interface IAttachMentsType {
        String TYPE_PIC = "0"; 	 // 图片
        String TYPE_AUDIO = "1"; // 音频
        String TYPE_VIDEO = "2"; // 视频
        String TYPE_FACE_IMAGE = "3"; // 人脸识别用的图片

        String TYPE_TXT = "13"; // txt
        String TYPE_PDF = "14"; // pdf
        String TYPE_WORD = "15"; // word
        String TYPE_EXCEL = "16"; // excel
        String TYPE_OTHERS = "7"; // 其他

        String TYPE_DOCUMENT = "8"; //文档 包括txt word pdf excel
        String TYPE_APP = "9"; //应用 apk
    }

    /**
     * 附件下载来源sharePreferences存储类型和名字
     */
    public interface ISourceModelPreferencesConst {
        int ATTACHMENT_MODEL_CLOUDCLOUD = 0; // 班级网盘
        int ATTACHMENT_MODEL_JXHD = 1; // 家校互动
        String ATTACHMENT_PREFERENCE_NAME_CLOUDDISK = "clouddisk";
        String ATTACHMENT_PREFERENCE_NAME_JXHD = "jxhd";
    }
}
